<table>
  <% @employee_of_studios.each do |post| %>
  <tr>
    <td><%= post.employee.name %></td>
    <td><%= post.position_id %></td>
    <% unless post.targets.month_target(@month).blank? %>
      <% target = post.targets.month_target(@month).first %>
      <td><%= target.amount %></td>
      <td><%= link_to "[月目标设置]", edit_director_target_admin_targets_path(target), remote: true %></td>
    <%else%>
      <td> - </td>
      <td><%= link_to "[月目标设置]", new_director_target_admin_targets_path(post_id: post.id, month: @month), remote: true %></td>
    <%end%>
  </tr>
  <%end%>
</table>

